home *** CD-ROM | disk | FTP | other *** search
-
- /*
- *
- * MOS112 : ユ-ザ定義サブル-チンの登録
- *
- */
-
- #include <stdio.h>
- #include <dos.h>
-
- unsigned int MOS_user_routine(unsigned int condition,unsigned int segment,unsigned int offset) {
- union REGS inregs, outregs;
- struct SREGS segregs;
-
- segread(&segregs);
- segregs.ds=(unsigned int)segment;
- inregs.x.di=(unsigned int)offset;
- inregs.x.dx=condition;
- inregs.x.ax=0x0B00;
- int86x(0x99,&inregs,&outregs,&segregs);
- return (unsigned int)outregs.h.ah;
- }